<template>
  <div id="app">
    <!-- <Login></Login> -->
    <!-- <Register></Register> -->
    <div class="container">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
// import Login from "@/pages/login.vue";
// import Register from "@/pages/register.vue";
export default {
  // components: { Login,Register },
  data() {
    return {};
  },
  mounted(){
    // 页面title设置
    document.title = "安宁股份供应商登录"
    var winWidth = window.innerWidth; // 获取窗口宽度
    var winHeight = window.innerHeight; // 获取窗口高度
    var app = document.getElementById("app");
    app.style.width = winWidth  + "px";
    app.style.height = winHeight + "px";
  },
  computed: {},
  methods: {},
};
</script>

<style>
@import "./style/index.css";
/* 修改滚动条的样式 */
::-webkit-scrollbar {
  width: 8px; /* 设置滚动条的宽度 */
  height: 8px;
}

/* 设置滚动条的轨道样式 */
::-webkit-scrollbar-track {
  background-color: #f1f1f1; /* 设置滚动条轨道的背景色 */
}

/* 设置滚动条的滑块样式 */
::-webkit-scrollbar-thumb {
  background-color: #c1c1c1; /* 设置滚动条滑块的背景色 */
  border-radius: 8px; /* 设置滚动条滑块的圆角 */
}

/* 鼠标悬停在滚动条上时的样式 */
::-webkit-scrollbar-thumb:hover {
  background-color: #888; /* 设置鼠标悬停时滚动条滑块的背景色 */
}
</style>
<style scoped>
#app {
  /* width: 100%; */
  min-width: 1000px;
  min-height: 800px;
  position: relative;
  user-select: none;
  background-image: url("./img/bg.png");
  background-size: 100% 100%;
}
.container {
  width: 484px;
  height: 704px;
  background: #fff;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 400px;
  padding: 60px 20px;
  box-sizing: border-box;
}
</style>
